/*
 * yLog.cpp
 *
 *  Created on: Sep 17, 2016
 *      Author: root
 */
#include "../../third_part/glog/logging.h"
#include "yLog.h"
void Log::init(char* v) {
	google::InitGoogleLogging(v);
	FLAGS_log_dir = "./log";
	google::LogToStderr();
}

void Log::end() {
	google::ShutdownGoogleLogging();
}

void Log::info(char* v) {
	LOG(INFO)<<v;
}

void Log::warning(char* v) {
	LOG(WARNING)<<v;
}

void Log::error(char* v) {
	LOG(ERROR)<<v;
}

void Log::fatal(char* v) {
	LOG(FATAL)<<v;
}
